\begin{tikzpicture}
	\tkzDefPoints{0/0/A, 1.5/0/B}
	\tkzDrawSegment(A,B)
	\tkzLabelSegment[above](A,B){$a$}
	\tkzDrawPoints[fill=black](A,B)
\end{tikzpicture}

